<?
class Rule_Less extends Rule
{
	public $v1;
	public $v2;
	public $error_message="Превышен лимит";
	
	function __construct($name,$v1,$v2, $error_message="")
	{
		$this->name=$name;
		$this->v1=$v1;
		$this->v2=$v2;
		if($error_message!="") $this->error_message = $error_message;
	}
	
	function Check($hash)
	{
		if( $this->v1 < $this->v2 ) return true;
		return false;
	}
}